package com.ssy.lingxi.member.merchant.repository;

import com.ssy.lingxi.member.merchant.entity.CountryCodeDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * 国家代码操作接口
 * @author 万宁
 * @version 2.0.0
 * @date 2020-07-14
 */
@Repository
public interface CountryCodeRepository extends JpaRepository<CountryCodeDO, Long>, JpaSpecificationExecutor<CountryCodeDO> {
    CountryCodeDO findFirstByCode(String code);

}
